From b582d1cdd75e4e3cd1a76d742134e55288c8e599 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Fri, 12 Jan 2007 06:35:10 +0000 Subject: [PATCH] This would actually do a SQL query of literally 'TRUNCATE $tableName;' - switching to "" quotes so that $tableName is substituted with the correct value. --- maintenance/FiveUpgrade.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/FiveUpgrade.inc b/maintenance/FiveUpgrade.inc index 8b7e613daa..4e69603700 100644 --- a/maintenance/FiveUpgrade.inc +++ b/maintenance/FiveUpgrade.inc @@ -738,7 +738,7 @@ END; function clearTable( $table ) { print "Clearing $table...\n"; $tableName = $this->db->tableName( $table ); - $this->db->query( 'TRUNCATE $tableName' ); + $this->db->query( "TRUNCATE $tableName" ); } /** -- 2.20.1